﻿using System;
using System.ServiceModel;
using System.Threading;

using WcfSyncAsync.Service;

namespace WcfSyncAsync.Host
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("Starting host...");
            SimpleService simpleServiceImpl = new SimpleService();
            using (ServiceHost sh = new ServiceHost(simpleServiceImpl))
            {
                sh.Open();
                Console.WriteLine("Host opened. Hit enter to shut down.");
                Console.ReadLine();
            }
        }
    }
}
